<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

// 这里
$router->get('haha', function (Request $request) {
	$user = $request->user();
	echo '<pre>';
	var_dump($user->id);
	var_dump($user->name);
	var_dump($user->email);
	var_dump($user->remember_token);
	var_dump($user->so_status);
	var_dump($user->created_at);
	var_dump($user->created_at->toDateTimeString());
	var_dump($user->updated_at);
	var_dump($user->deleted_at);
	// var_dump($request->method());
	return 'haha';
});

Auth::routes();

Route::get('/home', 'HomeController@index');
